﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Validation;
using MvcEngine.Core.Base;

namespace MvcEngine.Core.Content
{
    public class PageContent : Entity
    {
        public int Id { get; set; }

        public Guid SiteId { get; set; }

        public Guid PageId { get; set; }

        public Guid ContainerId { get; set; }

        public Guid ControlId { get; set; }

        public int Position { get; set; }

        public int? ReferenceId { get; set; }

        [LengthValidator("$LengthValidator", 50)]
        public string ContentName { get; set; }

        public override string Xml { get; set; }

        public Guid? CreatedBy { get; set; }

        public DateTime CreatedDate { get; set; }

        public Guid? ModifiedBy { get; set; }

        public DateTime ModifiedDate { get; set; }
    }
}
